<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>框架</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="favicon.ico" type="image/x-icon">
    <link rel="stylesheet" type="text/css" id="theme"  href="/css/theme-default.css">

</head>
<body>
<!-- START PAGE CONTAINER -->
<div class="row">
    <div class="col-md-12">
        <form class="form-horizontal" method="post" target="">
            <div class="form-group">
                {{ content() }}
                <label class="col-md-3 col-xs-3 control-label">父级菜单：</label>
                <div class="col-md-6 col-xs-6">
                    <select name="pid" class="form-control select">
                        <option value="0">请选择菜单：</option>

                   {%for menu in menu%}
                        <option value="{{menu.id}}" {%if class is defined%}{%if menu.id==class.pid %}selected{%endif%}{%endif%}>{{menu.title}}</option>
                        {%endfor%}

                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-md-3 col-xs-3 control-label">主菜单名称:</label>
                <div class="col-md-6 col-xs-6">
                    <div class="input-group">
                        <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                        <input name="title" type="text" class="form-control" value="{%if class is defined%}{{class.title}}{%endif%}">
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-md-3 col-xs-3 control-label">关联关键词:</label>
                <div class="col-md-4 col-xs-4">
                    <div class="input-group">
                        <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                        <input name="keyword" type="text" class="form-control" value="{%if class is defined%}{{class.keyword}}{%endif%}">
                    </div>
                </div>
                <div class="col-md-2">

                    <a class="btn btn-success">从功能库选择</a>
                </div>
            </div>

            <div class="form-group">
                <label class="col-md-3 col-xs-3 control-label">外链接url：</label>
                <div class="col-md-6 col-xs-6">
                    <div class="input-group">
                        <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                        <input name="url" type="text" class="form-control" value="{%if class is defined%}{{class.url}}{%endif%}">
                    </div>
                </div>
            </div>

<!--            <div class="form-group">-->
<!--                <label class="col-md-3 col-xs-3 control-label">显示：</label>-->
<!--                <div class="col-md-6 col-xs-6">-->
<!--                    <div class="col-md-4 col-xs-4">-->
<!--                        <label class="check"><input type="radio" class="iradio" name="iradio" checked="checked"/> 是</label>-->
<!--                    </div>-->
<!--                    <div class="col-md-4 col-xs-4">-->
<!--                        <label class="check"><input type="radio" class="iradio" name="iradio"/> 否</label>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-md-3 col-xs-3 control-label">排序:</label>-->
<!--                <div class="col-md-6 col-xs-6">-->
<!--                    <div class="input-group">-->
<!--                        <span class="input-group-addon"><span class="fa fa-pencil"></span></span>-->
<!--                        <input name="sort" type="text" class="form-control" value="{%if class is defined%}{{class.sort}}{%endif%}">-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->

            <div class="form-group col-md-12">
                <div class="col-md-6 col-xs-6 col-xs-offset-5">
                    <button class="btn btn-primary">提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" src="/js/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/js/plugins/jquery/jquery-ui.min.js"></script>
<script type="text/javascript" src="/js/plugins/bootstrap/bootstrap.min.js"></script>
<!-- END PLUGINS -->

<!-- START THIS PAGE PLUGINS-->
<script type='text/javascript' src="/js/plugins/icheck/icheck.min.js"></script>
<script type="text/javascript" src="/js/plugins/mcustomscrollbar/jquery.mCustomScrollbar.min.js"></script>

<script type="text/javascript" src="/js/plugins/bootstrap/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="/js/plugins/bootstrap/bootstrap-file-input.js"></script>
<script type="text/javascript" src="/js/plugins/bootstrap/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/plugins/tagsinput/jquery.tagsinput.min.js"></script>

<!-- END THIS PAGE PLUGINS-->
<script type="text/javascript" src="/js/plugins.js"></script>
<script type="text/javascript" src="/js/actions.js"></script>
<style type="text/css">
    html,body{
        background:none !important;
    }
</style>

<script>
    {%if is_ok%}
        setTimeout(function(){
            parent.window.location.reload();
        },1000);
        {%endif%}
</script>

</body>
</html>






